import request from '@/utils/request'



//调用后端
export function getstulist(){
  return request({
      url:'/demo3/getList',
      method:'get'
  })
}

export function addStudent(data){
  return request({
    url:'/demo3/addStudent',
    method:'post',
    headers: { 
      'Content-Type': 'application/json'
    },
    data:data
  })
}


export function delstu(data){
  return request({
      url:'/demo3/delStudent?stuid='  + data,
      method:'get',
      data
  })
}


//批量删除
export function delstuList(data){
  return request({
    url:"/demo3/delstulist",
    method:"post",
    data
  })
}

//编辑内容

export function updatastudent(data){
  return request({
    url:"/demo3/updataStudent",
    method:"post",
    data
  })
}

//搜索
export function finstudent(data){
  return request({
    url:"/demo3/selectstu",
    method:"post",
    data
  })
}